Optimal. Leaf size=92 \[ \frac {a \sin (c+d x) \cos ^3(c+d x)}{4 d}+\frac {3 a \sin (c+d x) \cos (c+d x)}{8 d}+\frac {3 a x}{8}+\frac {b \sin ^5(c+d x)}{5 d}-\frac {2 b \sin ^3(c+d x)}{3 d}+\frac {b \sin (c+d x)}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 92, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 4, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.210, Rules used = {2748, 2635, 8, 2633} \[ \frac {a \sin (c+d x) \cos ^3(c+d x)}{4 d}+\frac {3 a \sin (c+d x) \cos (c+d x)}{8 d}+\frac {3 a x}{8}+\frac {b \sin ^5(c+d x)}{5 d}-\frac {2 b \sin ^3(c+d x)}{3 d}+\frac {b \sin (c+d x)}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2633
Rule 2635
Rule 2748
Rubi steps
\begin {align*} \int \cos ^4(c+d x) (a+b \cos (c+d x)) \, dx &=a \int \cos ^4(c+d x) \, dx+b \int \cos ^5(c+d x) \, dx\\ &=\frac {a \cos ^3(c+d x) \sin (c+d x)}{4 d}+\frac {1}{4} (3 a) \int \cos ^2(c+d x) \, dx-\frac {b \operatorname {Subst}\left (\int \left (1-2 x^2+x^4\right ) \, dx,x,-\sin (c+d x)\right )}{d}\\ &=\frac {b \sin (c+d x)}{d}+\frac {3 a \cos (c+d x) \sin (c+d x)}{8 d}+\frac {a \cos ^3(c+d x) \sin (c+d x)}{4 d}-\frac {2 b \sin ^3(c+d x)}{3 d}+\frac {b \sin ^5(c+d x)}{5 d}+\frac {1}{8} (3 a) \int 1 \, dx\\ &=\frac {3 a x}{8}+\frac {b \sin (c+d x)}{d}+\frac {3 a \cos (c+d x) \sin (c+d x)}{8 d}+\frac {a \cos ^3(c+d x) \sin (c+d x)}{4 d}-\frac {2 b \sin ^3(c+d x)}{3 d}+\frac {b \sin ^5(c+d x)}{5 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.13, size = 89, normalized size = 0.97 \[ \frac {3 a (c+d x)}{8 d}+\frac {a \sin (2 (c+d x))}{4 d}+\frac {a \sin (4 (c+d x))}{32 d}+\frac {b \sin ^5(c+d x)}{5 d}-\frac {2 b \sin ^3(c+d x)}{3 d}+\frac {b \sin (c+d x)}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.76, size = 64, normalized size = 0.70 \[ \frac {45 \, a d x + {\left (24 \, b \cos \left (d x + c\right )^{4} + 30 \, a \cos \left (d x + c\right )^{3} + 32 \, b \cos \left (d x + c\right )^{2} + 45 \, a \cos \left (d x + c\right ) + 64 \, b\right )} \sin \left (d x + c\right )}{120 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.48, size = 77, normalized size = 0.84 \[ \frac {3}{8} \, a x + \frac {b \sin \left (5 \, d x + 5 \, c\right )}{80 \, d} + \frac {a \sin \left (4 \, d x + 4 \, c\right )}{32 \, d} + \frac {5 \, b \sin \left (3 \, d x + 3 \, c\right )}{48 \, d} + \frac {a \sin \left (2 \, d x + 2 \, c\right )}{4 \, d} + \frac {5 \, b \sin \left (d x + c\right )}{8 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 70, normalized size = 0.76 \[ \frac {\frac {b \left (\frac {8}{3}+\cos ^{4}\left (d x +c \right )+\frac {4 \left (\cos ^{2}\left (d x +c \right )\right )}{3}\right ) \sin \left (d x +c \right )}{5}+a \left (\frac {\left (\cos ^{3}\left (d x +c \right )+\frac {3 \cos \left (d x +c \right )}{2}\right ) \sin \left (d x +c \right )}{4}+\frac {3 d x}{8}+\frac {3 c}{8}\right )}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.47, size = 69, normalized size = 0.75 \[ \frac {15 \, {\left (12 \, d x + 12 \, c + \sin \left (4 \, d x + 4 \, c\right ) + 8 \, \sin \left (2 \, d x + 2 \, c\right )\right )} a + 32 \, {\left (3 \, \sin \left (d x + c\right )^{5} - 10 \, \sin \left (d x + c\right )^{3} + 15 \, \sin \left (d x + c\right )\right )} b}{480 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 4.26, size = 115, normalized size = 1.25 \[ \frac {3\,a\,x}{8}+\frac {\left (2\,b-\frac {5\,a}{4}\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^9+\left (\frac {8\,b}{3}-\frac {a}{2}\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7+\frac {116\,b\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5}{15}+\left (\frac {a}{2}+\frac {8\,b}{3}\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3+\left (\frac {5\,a}{4}+2\,b\right )\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{d\,{\left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+1\right )}^5} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 1.86, size = 168, normalized size = 1.83 \[ \begin {cases} \frac {3 a x \sin ^{4}{\left (c + d x \right )}}{8} + \frac {3 a x \sin ^{2}{\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{4} + \frac {3 a x \cos ^{4}{\left (c + d x \right )}}{8} + \frac {3 a \sin ^{3}{\left (c + d x \right )} \cos {\left (c + d x \right )}}{8 d} + \frac {5 a \sin {\left (c + d x \right )} \cos ^{3}{\left (c + d x \right )}}{8 d} + \frac {8 b \sin ^{5}{\left (c + d x \right )}}{15 d} + \frac {4 b \sin ^{3}{\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{3 d} + \frac {b \sin {\left (c + d x \right )} \cos ^{4}{\left (c + d x \right )}}{d} & \text {for}\: d \neq 0 \\x \left (a + b \cos {\relax (c )}\right ) \cos ^{4}{\relax (c )} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________